<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php if(!($_GET['print'] > 0)): ?>
<div id="component_<?php echo $com->Id; ?>" class="component">
    <div class="component_padding">
        <?php
			if(($theme->getBootstrap() > 0) || ($theme->ComHFB == 0))
			{
				?>
				    <div class="navbar navbar-default" role="navigation">
						<div class="container-fluid">
                        	<?php if($theme->getBootstrap() > 2): ?>
                            <div class="navbar-header">
                            	<a class="navbar-brand" href="#"><?php echo $com->NameL; ?> <?php echo $com->NameR; ?></a>
                            </div>
							<?php 
							if($com->ButtonsHeader)
							{
								foreach(array_keys($com->ButtonsHeader) as $bh)
								{
									$com->ButtonsHeader[$bh]['params']['class'] = $com->ButtonsHeader[$bh]['params']['class'].' navbar-btn';
								}
								//echo getButtonsHTML($theme->HFBSets[$theme->ComHFB]['button'], $com->ButtonsHeader, 1); 
							}
							?>
                            <div class="navbar-right">
								<?php 
                                if($com->ButtonsHeader)
                                { echo getButtonsHTML($theme->HFBSets[$theme->ComHFB]['button'], $com->ButtonsHeader); }
                                ?>
                            </div>
                            <?php else:  ?>
							<a class="brand" href="#" class="pull-left"><?php echo $com->NameL; ?> <?php echo $com->NameR; ?>&nbsp;</a>
							<div class="brand pull-left"><small><?php echo $text3; ?></small></div>
							<div class="pull-right">
							<?php 
							if($com->ButtonsHeader)
							{ echo getButtonsHTML($theme->HFBSets[$theme->ComHFB]['button'], $com->ButtonsHeader); }
							?>
							</div>
                            <?php endif;  ?>
						</div>
					</div>
				<?php
			}
			else if($theme->ComHFB > 0)
			{
				if($theme->HFBSets[$theme->ComHFB]['border'] > 0)
				{ echo $theme->Borders[$theme->HFBSets[$theme->ComHFB]['border']]->getTopHTML(); }
				if($theme->HFBSets[$theme->ComHFB]['header'] > 0)
				{ echo $theme->Headers[$theme->HFBSets[$theme->ComHFB]['header']]->getHTML($com->ButtonsHeader, $com->NameL, $com->NameR, $text3, ''); }
				if($theme->HFBSets[$theme->ComHFB]['border2'] > 0)
				{ echo $theme->Borders[$theme->HFBSets[$theme->ComHFB]['border2']]->getTopHTML(); }
			}
        ?>
<?php endif; ?>